const path = require('path');
module.exports = {
    //页面入口文件配置
    entry: "./src/js/index",
    //入口文件输出配置
    output: {
        path: path.join(__dirname, 'dist'),
        filename: "bundle.js"
    },
    resolve: {
        extensions: ['', '.js', 'jsx']
    },
    module: {
        loaders: [
            {
                test: /\.js$/,
                loaders: ['babel']
            }
        ]
    }
};